package com.own.business.exam.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BasePo;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * ExamPaper
 *
 * @author 陈学礼 （你是一段成熟的代码，要学会自己改bug）
 * @version 4.0.0
 * @date 2021/05/18 14:43:47
 * @since 4.0.0
 */
@ApiModel("考试试卷表" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_paper")
public class ExamPaper extends BasePo {

    @ApiModelProperty("试卷id")
    private Long fkExamId;

    @ApiModelProperty("用户id")
    private Long fkUserId;

    @ApiModelProperty("规则id")
    private Long fkRuleId;

    @ApiModelProperty("练习id")
    private Long fkPracticeId;

    @ApiModelProperty("题目数量")
    private Integer questionNumber;

    @ApiModelProperty("作答状态 0=未作答 1=已作答 2=保存 3=废弃")
    private Integer status;

    @ApiModelProperty("用时（ms）")
    private Long useTime;

    @ApiModelProperty("分数")
    private BigDecimal score;

    @ApiModelProperty("提交练习的时间")
    private LocalDateTime submitTime;

}
